<?php


namespace app\common\model\workflow;

use think\Exception;
use think\facade\Db;
use think\facade\Request;
use think\Model;

class Node extends Model
{
    protected $name = 'wf_node';

    protected $json = ['scopes'];
    protected $jsonAssoc = true;

    public function scope(): NodeScope
    {
        return $this->hasMany(NodeScope::class,'node_id');
    }

}